from dophon import *
from dophon.annotation import *

app = blue_print('info', __name__)


@RequestMapping('/info', ['get', 'post'])
@ResponseBody()
def info():
    return {'info': 'this is an information'}


@RequestMapping('/get/from/remote', ['get', 'post'])
@AutoParam()
@ResponseBody()
def test_discovery(name,age):
    print(name)
    print(age)
    return {'msg': f'recived msg from {name},age is {age}'}
